import request from '@/utils/request'

// 查询服务项目与套餐对应列表
export function listItemscombo(query) {
  return request({
    url: '/service/itemscombo/list',
    method: 'get',
    params: query
  })
}

// 查询服务项目与套餐对应详细
export function getItemscombo(itemscomboId) {
  return request({
    url: '/service/itemscombo/' + itemscomboId,
    method: 'get'
  })
}

// 新增服务项目与套餐对应
export function addItemscombo(data) {
  return request({
    url: '/service/itemscombo',
    method: 'post',
    data: data
  })
}

// 修改服务项目与套餐对应
export function updateItemscombo(data) {
  return request({
    url: '/service/itemscombo',
    method: 'put',
    data: data
  })
}

// 删除服务项目与套餐对应
export function delItemscombo(itemscomboId) {
  return request({
    url: '/service/itemscombo/' + itemscomboId,
    method: 'delete'
  })
}
